﻿using System.ServiceModel;

namespace Company.System
{
    public class Proxy : ClientBase<IDatagramContract>
    {

        private static IDatagramContract _instance;
        private static IDatagramContract _instance1;

        public static IDatagramContract Service
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new Proxy("DatagramService").Channel;
                }

                return _instance;
            }
        }

        public static IDatagramContract Service1
        {
            get
            {
                if (_instance1 == null)
                {
                    _instance1 = new Proxy("DatagramService1").Channel;
                }

                return _instance1;
            }
        }
        protected Proxy(string endPointConfigName) : base(endPointConfigName)
        {
        }
    }
}
